services:
  twingate_connector:
    container_name: twingate_connector
    image: docker.io/twingate/connector:1.80.0
    environment:
      - TWINGATE_NETWORK=  # FIXME Add your Twingate network name here
      - TWINGATE_ACCESS_TOKEN=${TWINGATE_ACCESS_TOKEN:?error}
      - TWINGATE_REFRESH_TOKEN=${TWINGATE_REFRESH_TOKEN:?error}
      - TWINGATE_LOG_LEVEL=1
      - TWINGATE_DNS=  # FIXME Add your local DNS server here, if needed (e.g. 10.0.0.1), otherwise remove this line
    sysctls:
      net.ipv4.ping_group_range: "0 2147483647"
    networks:
      - frontend
      - backend
    restart: unless-stopped

networks:
  frontend:
    external: true
  backend:
    external: true
